import { noticeDetail } from '@src/api/loan'
var WxParse = require('../../../components/wxParse/wxParse')
Component({
  data: {
    afficheDetail: {},
  },
  methods: {
    onLogin() {},
    onLoad(options) {
      if (options && options.id) {
        this.getDetail(options.id)
      }
    },
    onReady() {},
    getDetail(id) {
      noticeDetail({ id }).then((result) => {
        if (result.code == 0) {
          let { context } = result.data
          this.setData({ afficheDetail: result.data })
          WxParse.wxParse('context', 'html', context, this, 5)
        }
      })
    },
  },
})
